f2ede44a49e9d5e1df77a4d2f1b72e6f2007ccba,libcore-ui/src/main/java/com/android/libcore_ui/widget/AutomaticNewlineLinearLayout.java,AutomaticNewlineLinearLayout,onMeasure,#number#number#,33
Before Change
int lines = (int)Math.ceil(((getChildCount()*1.0) / (NUMS_PER_LINE*1.0)));
int height = lines * (margin_bottom + childHeight);
int heightChildSpec = MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.AT_MOST);
heightMeasureSpec = MeasureSpec.makeMeasureSpec(height, MeasureSpec.getMode(heightMeasureSpec));
setMeasuredDimension(widthMeasureSpec, heightMeasureSpec);
After Change
getChildAt(0).measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED);
childHeight = getChildAt(0).getMeasuredHeight();
}
heightChildSpec = MeasureSpec.makeMeasureSpec(childHeight, MeasureSpec.AT_MOST);
int widthChildSpec;
if (childWidth <= 0) {